package com.ruoyi.mapper;

import com.ruoyi.entity.po.TJudges;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface TJudgesMapper {

    /**
     * 查询评委列表
     * @param judges 评委
     * @return 评委列表
     */
    List<TJudges> selectJudgesList(@Param("judges") TJudges judges);

    /**
     * 添加评委
     * @param judges 评委
     * @return 结果
     */
    int insertJudges(@Param("judges") TJudges judges);

    @Select("select * from t_judges where phonenumber = #{phoneNum}")
    TJudges selectByPhoneNum(@Param("phoneNum") String phoneNum);
}
